package com.project.bean;

import java.time.LocalDate;

public class UserBean {
    //编号
    private int id ;
    //用户名字
    private String name;
    //用户密码
    private String pwd;
    //用户邮箱
    private String email;
    //用户头像
    private  String imgPath;
    //用户昵称
    private String nickname;
    //注册时间
    private LocalDate date=LocalDate.now();
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getImgPath() {
        return imgPath;
    }

    public void setImgPath(String imgPath) {
        this.imgPath = imgPath;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public LocalDate getDate() {
        return date;
    }

    public void setDate(LocalDate date) {
        this.date = date;
    }

    public UserBean() {
    }

    public UserBean(String name, String pwd, String email, String imgPath, String nickname) {
        this.name = name;
        this.pwd = pwd;
        this.email= email;
        this.imgPath = imgPath;
        this.nickname = nickname;
    }

    @Override
    public String toString() {
        return "UserBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", pwd='" + pwd + '\'' +
                ", Email='" + email + '\'' +
                ", imgPath='" + imgPath + '\'' +
                ", nickname='" + nickname + '\'' +
                ", date=" + date +
                '}';
    }

}
